package com.ruoyi.consult.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【咨询列表】对象 consult
 *
 * @author ruoyi
 * @date 2025-07-02
 */
@ApiModel(description = "咨询列表实体")
public class Consult extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "咨询列表id", example = "咨询列表id")
    private Long id;

    @ApiModelProperty(value = "标题", example = "标题")
    @Excel(name = "标题")
    private String title;

    @ApiModelProperty(value = "内容", example = "内容")
    @Excel(name = "内容")
    private String content;

    @ApiModelProperty(value = "图片", example = "图片")
    @Excel(name = "图片")
    private String image;

    @ApiModelProperty(value = "疾病id", example = "疾病id")
    private Long diseaseId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }

    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }

    public void setDiseaseId(Long diseaseId)
    {
        this.diseaseId = diseaseId;
    }

    public Long getDiseaseId()
    {
        return diseaseId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("content", getContent())
                .append("image", getImage())
                .append("createTime", getCreateTime())
                .append("diseaseId", getDiseaseId())
                .toString();
    }
}
